<?php

class commonControl extends Control {

    function __auto() {
        if (!isset($_SESSION['admin_id'])) {
            $this->error("您无权操作", "login/login");
        }
    }

}

?>